package tech.aistar.corejava.day15.synchronizeddemo;

/**
 * @Author: lya
 * @Description: 本类的作用描述:
 * @CreateDate: 2019/8/3
 * @Version: 1.0
 */
public class Account {
   private double balance = 100;

   public double getMoney(){
       return balance;
   }
   public void  withdraw(double money){
       if (money <= balance){
           this.balance  -=money;
       }
   }
}
